package com.tian.factory.function.factory;

import com.tian.factory.function.product.*;

/**
 * @author tiansongtao, Email:tiansongtao@up366.com
 * @date 2020/12/24 16:03
 */
public class AoDIFactory implements IFactory {


    @Override
    public ICar createProduct(int type) {
        switch (type) {
            case AO_DI_A_4:
                return new AoDiA4();
            case AO_DI_A_5:
                return new AoDiA5();
            case AO_DI_A_6:
                return new AoDiA6();
            default:
                return null;
        }
    }
}
